<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jQuery和js的DOM-关键字this</title>
</head>
<body>
    <ul>
        <li>1</li>
        <li id="elem">2</li>
        <li>3</li>
    </ul>
</body>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.6.3.js"></script>
<script>
    var en = document.getElementById("elem");
    console.log(en);
    console.log( $(en));
    console.log( $("li")[1] )
    $("li").click(function(){
    $(this).text("通过this修改点击元素文本")        
    })
</script>
</html>